home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Misc / NeXTcontour_1.7 / Source / Contour.h < prev    next >
Encoding:
Text File  |  1995-06-12  |  6.6 KB  |  309 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import <objc/Object.h>
  5. #import <appkit/nextstd.h>    /* gets stdio */
  6. #import <appkit/publicWraps.h>  /* for NXBeep */
  7. #import <appkit/Form.h>        /* for NXCoord, etc. */
  8.  
  9. typedef struct {
  10.     char  *filename;
  11.     NXCoord *x;
  12.     NXCoord *y;
  13.     NXCoord *z;
  14.     int   jmax;
  15.     int   kmax;
  16.     int   lmax;
  17.     NXPoint gridmin;
  18.     NXPoint gridmax;
  19. } grid_hunk;
  20.  
  21. typedef struct {
  22.     char  *filename;
  23.     NXCoord *functions;
  24.     NXCoord *pressure;
  25.     NXCoord *mach_number;
  26.     int   jmax;
  27.     int   kmax;
  28.     int   lmax;
  29.     NXCoord fsmach;
  30.     NXCoord alpha;
  31.     NXCoord re;
  32.     NXCoord time;
  33. } solution_hunk;
  34.  
  35. typedef struct {
  36.   NXCoord *x;
  37.   NXCoord *y;
  38.   int jmax;
  39.   int kmax;
  40.   NXPoint gridmin;
  41.   NXPoint gridmax;
  42. } grid_part;
  43.  
  44. typedef struct {
  45.   NXCoord *x;
  46.   NXCoord *y;
  47.   NXCoord *f;
  48.   int jmax;
  49.   int kmax;
  50.   NXPoint gridmin;
  51.   NXPoint gridmax;
  52.   NXCoord functionmin;
  53.   NXCoord functionmax;
  54. } function_part;
  55.  
  56. typedef struct {
  57.   NXCoord *x;
  58.   NXCoord *f;
  59.   int jmax;
  60. } line_data;
  61.  
  62. @interface Contour:Object
  63. {
  64.     id  canvasWindow;
  65.     id  preferencesPanel;
  66.     id  subsetsPanel;
  67.     id  controlsPanel;
  68.     id  colorPanel;
  69.     id  helpPanel;
  70.     id  levelsPanel;
  71.  
  72.     
  73.     id  animate3DFOnOff;
  74.     id  animate3DGOnOff;
  75.     id    mainTitle;        /* the main title object */
  76.     id    functionTitle;        /* the function title object */
  77.     id  changeTitleFont;    /* the change title font on/off button */
  78.     id  changeLabelFont;    /* the change label font on/off button */
  79.     id  openPanel;
  80.     id    fMax;
  81.     id    fMin;
  82.     id    xyLimits;
  83.     id    canvas;
  84.     id    zoomOnOff;
  85.     id    lFunctionMax;
  86.     id    kFunctionMax;
  87.     id    jFunctionMax;
  88.     id    lFunctionMin;
  89.     id    kFunctionMin;
  90.     id    jFunctionMin;
  91.     id    lFunctionInc;
  92.     id    kFunctionInc;
  93.     id    jFunctionInc;
  94.     id    functionMatrix;
  95.     id    plotButton;
  96.     id    lGridInc;
  97.     id    kGridInc;
  98.     id    jGridInc;
  99.     id    lGridMin;
  100.     id    kGridMin;
  101.     id    jGridMin;
  102.     id    lGridMax;
  103.     id    kGridMax;
  104.     id    jGridMax;
  105.     id  contourLimits;
  106.     id  numberContours;
  107.     id  autoContours;
  108.     id  drawFunction;
  109.     id  drawGrid;
  110.     id  clearPlot;
  111.     id  printPreviewMode;
  112.     id gridLineThickness;
  113.     id gridLineColorMatrix;
  114.     id contourLineThickness;
  115.     id solidContourLines;
  116.     id chooseGridPlane;
  117.     id chooseFunctionPlane;
  118.     id viewingTransformations;
  119.     id viewPoint;
  120.     id setAspectRatio;
  121.     id contourLineColor;
  122.     id xyLabelsOn;
  123.     id unitsLabelOn;
  124.     id contourValuesOn;
  125.     int contourNumber;
  126.     NXCoord *contourLevels;
  127.     NXPoint oldMin;
  128.     NXPoint oldMax;
  129.     NXPoint currentMin;
  130.     NXPoint currentMax;
  131.     BOOL Two_D;
  132.     BOOL colorOption;
  133.     BOOL printColorMode;
  134.     int beepError;
  135.     BOOL stateChangeGrid;
  136.     BOOL stateChangeFunction;
  137.     BOOL gridIsReadIn;
  138.     BOOL solutionIsReadIn;
  139.     id absissaCoordinate;
  140.     id chooseLineData;
  141.     id jLineMin;
  142.     id kLineMin;
  143.     id lLineMin;
  144.     id jLineMax;
  145.     id kLineMax;
  146.     id lLineMax;
  147.     id jLineInc;
  148.     id kLineInc;
  149.     id lLineInc;
  150.     id setDefault2D3D;
  151.     id setDefaultDataForm;
  152.     id setDefaultColor;
  153.     id setDefaultPrintColor;
  154.     id backgroundColor;
  155.     id foregroundColor;
  156.     id gridLineColor;
  157.     id printColor;
  158.  
  159.     id setDefaultDiscipline;
  160.     id setDefaultNumberOfFunctions;
  161.     id choose2D3DData;
  162.     id choose2D3DGrid;
  163.     id chooseDiscipline;
  164.     id chooseDataType;
  165.     id chooseScreenSize;
  166.     id numberOfFunctions;
  167.     int number_Of_Functions_Read_In;
  168.     BOOL AeroDynamic_Functions;
  169.     BOOL Binary_Data_Type;
  170.     NXColor backgroundcolor,foregroundcolor,gridcolor;
  171.  
  172.     /* structures */
  173.     grid_hunk gridhunk;
  174.     solution_hunk solnhunk;
  175.     grid_part gridH;
  176.     function_part functionH;
  177.     line_data xyData;
  178.  
  179.     id   theTextView;        /* a TextView object */
  180.     id   pboardoutput;            /* the pasteboard */
  181.     BOOL listGrid_Data;
  182.     BOOL listFunction_Data;
  183.     BOOL listSolution_Data;
  184.     NXStream *data_stream;
  185.  
  186.     NXRect oldFrame;
  187. }
  188.  
  189.  
  190. + initialize;
  191. + new;
  192.  
  193.  
  194. - (BOOL) doAnimateF;
  195. - (BOOL) doAnimateG;
  196. - (BOOL) doSetAspectRatio;
  197. - (BOOL) do2D3D;
  198. - (BOOL) do2D3D_grid;
  199. - (BOOL) doZoom;
  200. - (BOOL) doDrawFunction;
  201. - (BOOL) doDrawGrid;
  202. - (BOOL) doClearPlot;
  203. - (BOOL) doSolidLines;
  204. - (BOOL) shouldChangeTitleFont;
  205. - (BOOL) shouldChangeLabelFont;
  206. - (BOOL) shouldShowXYLabels;
  207. - (BOOL) shouldShowUnitsLabel;
  208. - (BOOL) shouldShowContourValues;
  209. - (NXCoord) provideFsmach;
  210. - (NXCoord) provideAlpha;
  211. - (NXCoord) provideRe;
  212. - (NXCoord) provideTime;
  213. - (const char *) provideMainTitle;
  214. - (const char *) provideFunctionTitle;
  215. - (float) provideGridLineThickness;
  216. - (float) provideContourLineThickness;
  217. - (NXColor) provideGridLineColor;
  218. - (NXColor) provideBackGroundColor;
  219. - (NXColor) provideForeGroundColor;
  220. - (int) provideContourLineColor;
  221.  
  222. - (function_part) provideFunction:sender;
  223. - (grid_part) provideGrid:sender;
  224. - (int) provideContourNumber:sender;
  225. - (NXCoord *) provideContourLevels:sender;
  226. - (int) provideViewingChoice:sender;
  227. - (int) provideViewPoint:sender;
  228. - (int) provideFunctionChoice:sender;
  229. - (int)checkMinMax;
  230. - stackOldMinMax:(float)xmin :(float)xmax :(float)ymin :(float)ymax;
  231. - previousView:sender;
  232.  
  233. - makeContourLevels:sender;
  234. - drawPlot:sender;
  235. - drawPlotButton:(int)state;
  236. - whyTheBeep:sender;
  237. - resetDefaults:sender;
  238. - resetAll:sender;
  239. - resetProjectionData:sender;
  240. - resetGridLineColorWell:sender;
  241.  
  242. - resetGridData:sender;
  243. - resetGridSubsets:sender;
  244. - resetGridMinMax:sender;
  245.  
  246. - resetFunctionSubsets:sender;
  247. - resetFunctionData:sender;
  248. - resetFunctionGridMinMax:sender;
  249. - resetFunctionMinMax:sender;
  250.  
  251. - resetMinMax:sender;
  252. - eQuateSubsets:sender;
  253.  
  254. - setWindowSize:sender;
  255.  
  256. - resetLineData:sender;
  257. - resetLineSubsets:sender;
  258. - writeOutLineData:sender;
  259.  
  260. - findGridMinAndMax;
  261. - findFunctionMinAndMax;
  262. - findFunctionGridMinAndMax;
  263. - (NXCoord)provideXmin;
  264. - (NXCoord)provideXmax;
  265. - (NXCoord)provideYmin;
  266. - (NXCoord)provideYmax;
  267. - (NXCoord)provideFmin;
  268. - (NXCoord)provideFmax;
  269. - (NXCoord)provideContourmin;
  270. - (NXCoord)provideContourmax;
  271. - (NXCoord)provideContourinc;
  272.  
  273. - resetCmin:(NXCoord)x;
  274. - resetCmax:(NXCoord)x;
  275. - resetCinc:(NXCoord)x;
  276. - resetFmin:(NXCoord)x;
  277. - resetFmax:(NXCoord)x;
  278. - resetXmin:(NXCoord)x;
  279. - resetXmax:(NXCoord)x;
  280. - resetYmin:(NXCoord)x;
  281. - resetYmax:(NXCoord)x;
  282.  
  283.  
  284. - openGrid:sender;
  285. - openSolution:sender;
  286. - readGrid:(NXStream *)aDataStream :(char *)dataFile;
  287. - readSoln:(NXStream *)aDataStream :(char *)dataFile;
  288. - openGridFile:(char *)dataFile;
  289. - openSolnFile:(char *)dataFile;
  290.  
  291. - loadGrid:sender;
  292. - loadFunction:sender;
  293. - loadFunctionGrid:sender;
  294.  
  295. /* Services menu methods */
  296.  
  297. - validRequestorForSendType:(NXAtom)sendType andReturnType:(NXAtom)returnType;
  298. - writeSelectionToPasteboard:pboard types:(NXAtom *)types;
  299.  
  300. - listGridData:sender;
  301. - listGridLoad:sender;
  302. - listSolutionData:sender;
  303. - listFunctionData:sender;
  304. - listFunction_SolutionLoad:sender;
  305. @end
  306.  
  307.  
  308.  
  309.